using System;
using System.IO;
using System.Windows;

namespace Qplus.Commands
{

    /**
     * 忘记密码
     * 
     *
     */
    public class ForgotPwdCommand : AbsHeaderHttpCommand , HttpInputStreamProcessor{

	    const String COMMAND = "ForgotPwd";
	    /**
	     * @param command
	     * @param uid
	     * @param UKEY
	     */
	    public ForgotPwdCommand(String uid, String UKEY)
            : base(COMMAND, uid, UKEY)
        {

	    }
	
	    /**
	     * 
	     * @param appID 应用id
	     * @param mail 邮箱
	     */
	    public void set(long appID, String mail){
		    setAppID(appID);
		    setEmail(mail);
	    }
	
	    private void setAppID(long appID){
		    addParams("AppID", appID);
	    }
	
	    private void setEmail(String mail){
		    addParams("Mail", mail);
	    }


        public override Boolean processInputStream(Stream responseStream)
        {
		    return true;
	    }

	    public override void onSuccess(int code) {
	    }

	    public override void onFailed(int code) {
	    }
	
	    public HttpTask execute(String url) {
		    return base.execute(url, this);
	    }
    }
}
